import HTTP from "@/utils/http";
const base = "/address";

// 国家列表
export const countryList = (data) =>
  HTTP.get("/address/countryList", { params: data });
export const provincesList = (data) =>
  HTTP.get("/address/provincesList", { params: data });
// 市级列表
export const citiesList = (data) =>
  HTTP.get("/address/citiesList", { params: data });
// 区县列表
export const districtsList = (data) =>
  HTTP.get("/address/districtsList", { params: data });
// 新增省份
export const addProvincesList = (data) =>
  HTTP.post("/address/addProvincesList", data);
// 删除省份
export const removeProvinces = (data) =>
  HTTP.post("/address/removeProvinces", data);
// 更新省份
export const updateProvinces = (data) =>
  HTTP.post("/address/updateProvinces", data);
// 新增市级
export const addCities = (data) => HTTP.post("/address/addCities", data);
// 删除市级
export const removeCities = (data) => HTTP.post("/address/removeCities", data);
// 更新市级
export const updateCities = (data) => HTTP.post("/address/updateCities", data);
// 新增区县
export const addDistricts = (data) => HTTP.post("/address/addDistricts", data);
// 删除区县
export const removeDistricts = (data) =>
  HTTP.post("/address/removeDistricts", data);
// 更新区县
export const updateDistricts = (data) =>
  HTTP.post("/address/updateDistricts", data);

export default {
  countryList,
  provincesList
}
